package com.example.renshiguanli.service.impl;

import com.example.renshiguanli.mapper.EmpSalaryMapper;
import com.example.renshiguanli.pojo.Empsalary;
import com.example.renshiguanli.service.EmpSalaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpSalaryServiceImpl implements EmpSalaryService {
    @Autowired
    private EmpSalaryMapper empSalaryMapper;
    @Override
    public List<Empsalary> findAll() {
        return empSalaryMapper.findAll();
    }

    @Override
    public List<Empsalary> query(String name) {
        return empSalaryMapper.query(name);
    }
}
